home *** CD-ROM | disk | FTP | other *** search
- /*
-
- HighLevelUDP.h
-
- high-level UDP I/O functions.
-
- 12/04/95 dn - Created
- */
-
- #pragma once
-
- #ifndef __HL_TCP_H
- #define __HL_TCP_H
-
- #include <MyTCPIncludes.h>
-
- #ifdef __cplusplus
- extern "C" {
- #endif
-
- OSErr udpCreate(StreamPtr *stream,ProcPtr udpNotifyProc,Ptr buffer, long bufsize);
- OSErr udpSend(ip_addr host,udp_port port,StreamPtr stream,Ptr data,unsigned short len,Boolean push,Boolean urgent);
- OSErr udpRead(ip_addr host,udp_port port,StreamPtr stream,Ptr data,unsigned short *len);
- OSErr udpReturnBuffers(StreamPtr stream,rdsEntry *rds);
-
- OSErr udpRelease(StreamPtr stream, Ptr *buffer, long *bufsize);
-
- #ifdef __cplusplus
- }
- #endif
-
- #endif
-